package com.suke.czx.common.utils;

/**
 * 应用模块名称: 枚举类
 * 代码描述: Content-Type常用导出格式枚举类
 * copyright: AUZAR ALL RIGHTS RESERVED
 * company: AUZAR
 *
 * @author: 颜米晨
 * @date: 2021/10/20 1:09
 */
public enum ExportContentTypeEnum {

    /**
     * EXCEL-2003格式
     */
    EXCEL_2003("application/vnd.ms-excel","xls"),

    /**
     * EXCEL-2007格式
     */
    EXCEL_2007("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","xlsx"),

    /**
     * WORD-2003格式
     */
    WORD_2003("application/msword", "doc"),

    /**
     * WORD-2007格式
     */
    WORD_2007("application/vnd.openxmlformats-officedocument.wordprocessingml.document", "docx"),

    /**
     * POWERPOINT-2003格式
     */
    PPT_2003("application/vnd.ms-powerpoint", "ppt"),

    /**
     * POWERPOINT-2007格式
     */
    PPT_2007("application/vnd.openxmlformats-officedocument.presentationml.presentation", "pptx"),

    /**
     * PDF格式
     */
    PDF("application/pdf", "pdf"),

    /**
     * JSON格式
     */
    JSON("application/json", "json"),

    /**
     * ZIP格式
     */
    ZIP("application/zip", "zip"),

    /**
     * RAR格式
     */
    RAR("application/octet-stream", "rar"),

    /**
     * HTML格式
     */
    HTML("text/html", "html"),

    /**
     * JPG格式
     */
    JPG("image/jpeg", "jpg"),

    /**
     * JPEG格式
     */
    JPEG("image/jpeg", "jpeg"),

    /**
     * PNG格式
     */
    PNG("image/png", "png");

    private String format;
    private String key;

    ExportContentTypeEnum(String format, String key) {
        this.format = format;
        this.key = key;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String name) {
        this.format = name;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

}
